Skip to content

Fix regex strings in gitpod-cli and ws-daemon #4843

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 1 commit into from

Conversation

saisrivathsa
Copy link

No description provided.

@roboquat
Copy link
Contributor

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by: saisrivathsa
To complete the pull request process, please assign fntlnz after the PR has been reviewed.
You can assign the PR to them by writing /assign @fntlnz in a comment when ready.

The full list of commands accepted by this bot can be found here.

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@roboquat roboquat requested review from aledbf and rl-gitpod July 16, 2021 07:10
@saisrivathsa
Copy link
Author

Created a new PR with requested changes here

@@ -31,7 +31,7 @@ const (
)

var (
sizeRegexp = regexp.MustCompile(`(\d+)(k|m|g|t)?`)
sizeRegexp = regexp.MustCompile(`^(\d+)(k|m|g|t)?$`)
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Made changes as requested by @corneliusludmann here

@@ -23,8 +23,8 @@ func TestParseSize(t *testing.T) {
{"42m", 42 * quota.Megabyte, nil},
{"42g", 42 * quota.Gigabyte, nil},
{"42t", 42 * quota.Terabyte, nil},
// This test should fail but doesn't because match somehow matches the regexp
// {"-42m", 0, quota.ErrInvalidSize},
{"-42m", 0, quota.ErrInvalidSize},
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Made changes as requested by @corneliusludmann here

@csweichel
Copy link
Contributor

csweichel commented Jul 16, 2021

/werft run

👍 started the job as gitpod-build-fix-regex-strings-fork.0

@csweichel
Copy link
Contributor

@aledbf do you know shellcheck would fail here? There's no change to this file in this PR.

@aledbf
Copy link
Member

aledbf commented Jul 16, 2021

@csweichel fix in #4850

@aledbf
Copy link
Member

aledbf commented Jul 19, 2021

@saisrivathsa please rebase

@stale
Copy link

stale bot commented Sep 28, 2021

This pull request has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the meta: stale This issue/PR is stale and will be closed soon label Sep 28, 2021
@stale stale bot closed this Oct 3, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
meta: stale This issue/PR is stale and will be closed soon size/XS
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants